package com.transaction.demo.base.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.transaction.demo.base.biz.SysAuditLogBiz;
import com.transaction.demo.common.util.ResultPage;
import com.transaction.demo.base.vo.req.AuditLogReqVo;
import com.transaction.demo.base.vo.req.AuditLogListReqVo;
import com.transaction.demo.base.vo.req.AuditLogAddReqVo;
import com.transaction.demo.base.vo.req.AuditLogUpdateReqVo;
import com.transaction.demo.base.vo.resp.AuditLogRespVo;
import com.transaction.demo.base.service.SysAuditLogService;

/**
 * 描述：日志审计表
 * 作者：马庆智
 * 日期：2023/03/28 17:07:13
 */
@Service
public class SysAuditLogServiceImpl implements SysAuditLogService {

	@Autowired
	private SysAuditLogBiz auditLogBiz;

	/**
	 * 查询日志审计表
	 *
	 * @param auditLog 请求参数
	 * @return AuditLogResp
	 * @author 马庆智
	 * @date: 2023/03/28 17:07:13
	 */
	@Override
	public AuditLogRespVo queryAuditLog(AuditLogReqVo auditLog) {

		return auditLogBiz.queryAuditLog(auditLog);
	}

	/**
	 * 查询日志审计表列表
	 *
	 * @param auditLog 请求参数
	 * @return AuditLogResp
	 * @author 马庆智
	 * @date: 2023/03/28 17:07:13
	 */
	@Override
	public ResultPage<AuditLogRespVo> queryAuditLogList(AuditLogListReqVo auditLog) {

		return auditLogBiz.queryAuditLogList(auditLog);

	}

	/**
	 * 添加日志审计表
	 *
	 * @param auditLog 请求参数
	 * @return int
	 * @author 马庆智
	 * @date: 2023/03/28 17:07:13
	 */
	@Override
	public int saveAuditLog(AuditLogAddReqVo auditLog) {

		return auditLogBiz.saveAuditLog(auditLog);
	}

	/**
	 * 删除日志审计表
	 *
	 * @param ids 请求参数
	 * @return int
	 * @author 马庆智
	 * @date: 2023/03/28 17:07:13
	 */
	@Override
	public int deleteAuditLog(String ids) {
		return auditLogBiz.deleteAuditLog(ids);
	}

	/**
	 * 更新日志审计表
	 *
	 * @param auditLog 请求参数
	 * @return int
	 * @author 马庆智
	 * @date: 2023/03/28 17:07:13
	 */
	@Override
	public int updateAuditLog(AuditLogUpdateReqVo auditLog) {

		return auditLogBiz.updateAuditLog(auditLog);
	}

}